import java.io.File;

/**
 * @author lingkang
 * created by 2023/11/24
 */
public class Demo02 {
    public static void main(String[] args) {
        File file=new File("C:\\Users\\Administrator\\Desktop\\GIF 2023-11-22 10-36-18.gif");
        file.renameTo(new File(file.getAbsolutePath()+"-"+System.currentTimeMillis()+".gif"));
        System.out.println(file.getAbsolutePath());
    }
}
